<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('特殊人员登记')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: bootstrap-editable-css"/>
    <th:block th:include="include :: container-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <p>工号：</p>
                            <input type="text" name="badge"/>
                        </li>
                        <li>
                            <p>姓名：</p>
                            <input type="text" name="name"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:benefitbase:add">
                <i class="fa fa-plus"></i> 添加
            </a>

            <a class="btn btn-primary single disabled" onclick="$.operate.edit()"
               shiro:hasPermission="system:welfareopen:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger multiple disabled" onclick="removeAllIslock()"
               shiro:hasPermission="system:benefitbase:remove">
                <i class="fa fa-remove"></i> 删除
            </a>

            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:benefitbase:export">
                <i class="fa fa-download"></i> 导出
            </a>

        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>
<th:block th:include="include :: bootstrap-table-editable-js"/>
<th:block th:include="include :: hr-help-js"/>
<th:block th:include="include :: datetimepicker-js" />

<script th:inline="javascript">
    var prefix = ctx + "welfare/tsgjj";
    $(function () {
        var options={
            code: "id",
            uniqueId: "id",
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            height: $(window).height() - 120,
            modalName: "特殊人员登记",
            columns:[{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '序号'
                },
                {
                    field: 'badge',
                    title: '工号'
                },
                {
                    field: 'name',
                    title: '姓名'
                },
                {
                    field: 'compName',
                    title: '公司名称'
                },
                {
                    field: 'depName',
                    title: '部门名称'
                },
                {
                    field: 'jobName',
                    title: '岗位名称'
                },
                {
                    field: 'empStatusName',
                    title: '员工状态'
                },
                {
                    field: 'joinDate',
                    title: '入职日期'
                },
                {
                    field: 'pzidName',
                    title: '薪资区域'
                },
                {
                    field: 'amount',
                    title: '公积金个人承担部分'
                },
                {
                    field: 'amount1',
                    title: '公积金公司承担部分'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
            ]
        };
        $.table.init(options);
    })
</script>
</body>
</html>